﻿using XKJ.OAWeb.Models;
using XKJ.OAWeb.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XKJ.OAWeb.Dto;

namespace XKJ.OAWeb.Application
{
    public interface IRoleService
    {
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        public PageList<Role> RoleShow(int Pageindex, int Pagesize,string RoleName);
        /// <summary>
        /// 角色权限显示
        /// </summary>
        /// <returns></returns>
        public PageList<RoleLimitsDto> RoleLimitsShow(int Pageindex, int Pagesize, string? RoleName);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public bool RoleDeleteId(int Id);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public Role RoleBackfill(int Id);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="role"></param>
        /// <returns></returns>
        public int RoleUptdate(Role role);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="role"></param>
        /// <returns></returns>
        public int RoleAdd(Role role);

    }
}
